{if $datas['page'] > 1}
    <li><a href="{$url}?page={$datas['page'] - 1}&{$datas['query']}">«</a></li>
{/if}

{if $datas['last_page'] > 1}
    {foreach $datas['pageRange'] as $page}
        {if $datas['page'] == $page}
            <li class="active num"><span>{$page}</span></li>
        {elseif $page == '...' /}
            <li><span>{$page}</span></li>
        {else /}
            <li class="num"><a href="{$url}?page={$page}&{$datas['query']}">{$page}</a></li>
        {/if}
    {/foreach}
{/if}

{if $datas['page'] < $datas['last_page']}
    <li><a href="{$url}?page={$datas['page'] + 1}&{$datas['query']}">»</a></li>
{/if} 

{if $datas['last_page'] > 1}
    <li>
        <label style="color: #999;">到第</label>
            <input id="goPage" style="
                width: 40px;
                height: 36px;
                line-height: 1.42857143;
                color: #393D49;
                background: #fff;
                border: 1px solid #eee;"/>
        <label style="color: #999;">页</label>
    </li>
    <li>
        <label id="go" style="cursor: pointer;
            padding: 6px 12px;
            line-height: 2.42857143;
            color: #393D49;
            background: #fff;
            border: 1px solid #eee;">确定</label>
    </li>
{/if}